<template>
	<view class="container">
		<view class="header">
			<text class="title">消息通知</text>
		</view>

		<view class="message-list">
			<view class="message-item" v-for="(message, index) in messages" :key="index">
				<view class="message-content">
					<text class="message-title">{{ message.title }}</text>
					<text class="message-time">{{ message.time }}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				messages: [{
						title: '系统更新通知',
						time: '2025-02-11 10:00'
					},
					{
						title: '新消息通知',
						time: '2025-02-10 14:30'
					},
					{
						title: '账户安全提醒',
						time: '2025-02-09 09:15'
					}
				]
			};
		}
	};
</script>

<style>
	.container {
		background: #f5f7fa;
		padding: 20rpx;
	}

	.header {
		background: #003b90;
		color: #fff;
		padding: 40rpx 30rpx;
	}

	.title {
		font-size: 36rpx;
		font-weight: bold;
	}

	.message-list {
		margin-top: 20rpx;
		background: #fff;
	}

	.message-item {
		padding: 20rpx;
		border-bottom: 1px solid #f0f0f0;
	}

	.message-content {
		display: flex;
		flex-direction: column;
	}

	.message-title {
		font-size: 30rpx;
		color: #333;
	}

	.message-time {
		font-size: 26rpx;
		color: #666;
	}
</style>